package cn.fengkuok.examples.domain.logic.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.fengkuok.examples.dao.UserDao;
import cn.fengkuok.examples.domain.logic.UserService;
import cn.fengkuok.examples.domain.model.User;
import cn.fengkuok.security.annotation.InitUserAccounts;

@Service(UserService.NAME)
@Transactional
public class UserServiceImpl implements UserService {

	@Resource(name = "userDao")
	private UserDao userDao;

	@Override
	public User findUserAccount(Long id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	@Transactional(readOnly = true)
	@InitUserAccounts("fsdfds")
	public List<User> getUserAccountList() {
		return userDao.getAllUser();
	}

	@Override
	public void saveOrUpdateUserAccount(User entity) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void removeUserAccount(Long id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void removeUserAccount(String ids) {
		// TODO Auto-generated method stub
		
	}
	
	

}
